package com.cn.hu.entity;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Plan entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "plan", catalog = "huarui")
public class Plan implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer customerId;
	private Integer depId;
	private Integer contactsId;
	private String deparmentName;
	private String contactsName;
	private Integer empId;
	private String employeeName;
	private String planUnit;
	private Integer supplierId;
	private String manufactor;
	private String tel;
	private String goodsName;
	private String goodsType;
	private String goodsUnit;
	private Double goodsNum;
	private Double goodsPrice;
	private Double goodsTotal;
	private Double goodsOriginal;
	private Integer planStatus;
	private Double paperPrice;
	private Double paperTotalPrice;
	private String orderDate;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer status;
	private String bak;

	// Constructors

	/** default constructor */
	public Plan() {
	}

	/** minimal constructor */
	public Plan(Timestamp createDate, Timestamp modifyDate) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
	}

	/** full constructor */
	public Plan(Integer customerId, Integer depId, Integer contactsId,
			String deparmentName, String contactsName, Integer empId,
			String employeeName, String planUnit, Integer supplierId,
			String manufactor, String tel, String goodsName, String goodsType,
			String goodsUnit, Double goodsNum, Double goodsPrice,
			Double goodsTotal, Double goodsOriginal, Integer planStatus,
			Double paperPrice, Double paperTotalPrice, Timestamp createDate,
			Timestamp modifyDate, Integer status, String bak) {
		this.customerId = customerId;
		this.depId = depId;
		this.contactsId = contactsId;
		this.deparmentName = deparmentName;
		this.contactsName = contactsName;
		this.empId = empId;
		this.employeeName = employeeName;
		this.planUnit = planUnit;
		this.supplierId = supplierId;
		this.manufactor = manufactor;
		this.tel = tel;
		this.goodsName = goodsName;
		this.goodsType = goodsType;
		this.goodsUnit = goodsUnit;
		this.goodsNum = goodsNum;
		this.goodsPrice = goodsPrice;
		this.goodsTotal = goodsTotal;
		this.goodsOriginal = goodsOriginal;
		this.planStatus = planStatus;
		this.paperPrice = paperPrice;
		this.paperTotalPrice = paperTotalPrice;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.status = status;
		this.bak = bak;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "customer_id")
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "dep_id")
	public Integer getDepId() {
		return this.depId;
	}

	public void setDepId(Integer depId) {
		this.depId = depId;
	}

	@Column(name = "contacts_id")
	public Integer getContactsId() {
		return this.contactsId;
	}

	public void setContactsId(Integer contactsId) {
		this.contactsId = contactsId;
	}

	@Column(name = "deparment_name", length = 50)
	public String getDeparmentName() {
		return this.deparmentName;
	}

	public void setDeparmentName(String deparmentName) {
		this.deparmentName = deparmentName;
	}

	@Column(name = "contacts_name", length = 50)
	public String getContactsName() {
		return this.contactsName;
	}

	public void setContactsName(String contactsName) {
		this.contactsName = contactsName;
	}

	@Column(name = "emp_id")
	public Integer getEmpId() {
		return this.empId;
	}

	public void setEmpId(Integer empId) {
		this.empId = empId;
	}

	@Column(name = "employee_name", length = 50)
	public String getEmployeeName() {
		return this.employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}

	@Column(name = "plan_unit", length = 50)
	public String getPlanUnit() {
		return this.planUnit;
	}

	public void setPlanUnit(String planUnit) {
		this.planUnit = planUnit;
	}

	@Column(name = "supplier_id")
	public Integer getSupplierId() {
		return this.supplierId;
	}

	public void setSupplierId(Integer supplierId) {
		this.supplierId = supplierId;
	}

	@Column(name = "manufactor", length = 50)
	public String getManufactor() {
		return this.manufactor;
	}

	public void setManufactor(String manufactor) {
		this.manufactor = manufactor;
	}

	@Column(name = "tel", length = 20)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "goods_name", length = 50)
	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Column(name = "goods_type", length = 50)
	public String getGoodsType() {
		return this.goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}

	@Column(name = "goods_unit", length = 50)
	public String getGoodsUnit() {
		return this.goodsUnit;
	}

	public void setGoodsUnit(String goodsUnit) {
		this.goodsUnit = goodsUnit;
	}

	@Column(name = "goods_num", precision = 10)
	public Double getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Double goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "goods_price", precision = 10)
	public Double getGoodsPrice() {
		return this.goodsPrice;
	}

	public void setGoodsPrice(Double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	@Column(name = "goods_total", precision = 10)
	public Double getGoodsTotal() {
		return this.goodsTotal;
	}

	public void setGoodsTotal(Double goodsTotal) {
		this.goodsTotal = goodsTotal;
	}

	@Column(name = "goods_original", precision = 10)
	public Double getGoodsOriginal() {
		return this.goodsOriginal;
	}

	public void setGoodsOriginal(Double goodsOriginal) {
		this.goodsOriginal = goodsOriginal;
	}

	@Column(name = "plan_status")
	public Integer getPlanStatus() {
		return this.planStatus;
	}

	public void setPlanStatus(Integer planStatus) {
		this.planStatus = planStatus;
	}

	@Column(name = "paper_price", precision = 10)
	public Double getPaperPrice() {
		return this.paperPrice;
	}

	public void setPaperPrice(Double paperPrice) {
		this.paperPrice = paperPrice;
	}

	@Column(name = "paper_total_price", precision = 10)
	public Double getPaperTotalPrice() {
		return this.paperTotalPrice;
	}

	public void setPaperTotalPrice(Double paperTotalPrice) {
		this.paperTotalPrice = paperTotalPrice;
	}

	@Column(name = "create_date", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "modify_date", nullable = false, length = 19)
	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "bak", length = 100)
	public String getBak() {
		return this.bak;
	}

	public void setBak(String bak) {
		this.bak = bak;
	}

	@Column(name = "order_date")
	public String getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}
	
	

}